<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/v2/console/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link rel="stylesheet" href="${path}/v2/console/css/base.css">
<link rel="stylesheet" href="${path}/v2/console/css/style.css">
<script src="${path}/v2/console/js/jquery-1.9.1.min.js"></script>
<script src="${path}/v2/console/js/jquery-ui.min.js"></script>
<script src="${path}/v2/console/js/jquery-ui-timepicker-addon.min.js"></script>
<script src="${path}/v2/console/js/globle.js"></script>
<script src="${path}/v2/console/js/jquery.form.js"></script>
<script src="http://api.map.baidu.com/api?v=1.3"></script>
<script src="<%=basePath %>/v2/console/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
</script>
<div class="column-name">
	<h2>
		技能空间> <b>修改所属分类</b>
	</h2>
</div>
<div class="form">
	<form id="form1" action="${path}/school/updateLabel.html" method="post">
		
				<input type="hidden" name="yxId" id="yxId" value="" >
				<input type="hidden" id = "schoolId" name="schoolId" value="${map.schoolId}" >
		<div class="form-item">
			<div class="form-name">所属分类：</div>
			<div class="form-input" style="margin-top: 24px">
					<c:forEach var="map"  items="${Labelist}" varStatus="status">
							<input type="checkbox"  name="dicId" class="lx" 
							<c:forEach var="yx"  items="${DicSkillist}">
								<c:if test="${yx.dicId==map.dataId}">checked="checked" </c:if>
							</c:forEach>
							   value="${map.dataId}">${map.dic_name }
					</c:forEach>
				<div class="clearfix"></div>
				<div class="form-msg hide" style="color: red;"></div>
			</div>
		</div>
						
		<input type="submit" class="btn w144" value="保存" onclick="SubAdd()">
		
	</form>
</div>	
	<script type="text/javascript">
	function SubAdd(){
		var obj=document.getElementsByName('dicId');
			var s=''; 
			for(var i=0; i<obj.length; i++){ 
				if(obj[i].checked){
					s+=obj[i].value+','; //如果选中，将value添加到变量s中 
				}
			}
			s.substring(0,s.length-1);
			$("#yxId").val(s);
			
	}
	</script>
		
		

	

